package com.huafv.flyauth.web.admin.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class HelloController extends BaseController {

    @PostMapping("/hello")
    @PreAuthorize("hasAuthority('uavdvad')")
    public String hello() {
        return "hello";
    }

}